import {httpGet, httpPost } from "../utils/http";

const apiUrl = "xmkb";

/**
 * 项目看板_项目经营
 * @param {*} param 
 * @returns
 */
export function xmjy(param) {
  return httpPost(`${apiUrl}/xmjy`, param)
    .then((r) => r?.[0]?.data)
    .then((t) => t.records?.[0]);
}

/**
 * 项目看板_设计阶段情况
 * @param {*} param 
 * @returns
 */
export function sjjdqk(param) {
  return httpPost(`${apiUrl}/sjjdqk`, param)
    .then((r) => r?.[0]?.data)
    .then((t) => t.records?.[0]);
}

/**
 * 项目看板_业务阶段情况
 * @param {*} param 
 * @returns
 */
export function ywjdqk(param) {
  return httpPost(`${apiUrl}/ywjdqk`, param)
    .then((r) => r?.[0]?.data)
    .then((t) => t.records?.[0]);
}

/**
 * 项目看板_投资项目预测（获取行业下拉列表）
 * @param {*} param 
 * @returns
 */
export function getFiledList(param) {
  return httpPost(`${apiUrl}/tzxmyc/getFiledList`, param)
    .then((r) => r?.[0]?.data)
    .then((t) => t.records);
}
	
/**
 * 项目看板_投资项目预测
 * @param {*} param 
 * @returns
 */
export function tzxmyc(param) {
  return httpPost(`${apiUrl}/tzxmyc`, param)
    .then((r) => r?.[0]?.data)
    .then((t) => t.records);
}
	
/**
 * 项目看板_项目总览
 * @param {*} param 
 * @returns
 */
export function xmzl(param) {
  return httpPost(`${apiUrl}/xmzl`, param)
    .then((r) => r?.[0]?.data)
    .then((t) => t.records?.[0]);
}

/**
 * 项目看板_地图
 * @param {*} param 
 * @returns
 */
export function dt(param) {
  return httpPost(`${apiUrl}/dt`, param)
    .then((r) => r?.[0]?.data)
    .then((t) => t.records);
}

/**
 * 项目看板_投资阶段情况
 * @param {*} param 
 * @returns
 */
export function tzjdqk(param) {
  return httpPost(`${apiUrl}/tzjdqk`, param)
    .then((r) => r?.[0]?.data)
    .then((t) => t.records?.[0]);
}

/**
 * 项目看板_建设阶段情况
 * @param {*} param 
 * @returns
 */
export function jsjdqk(param) {
  return httpPost(`${apiUrl}/jsjdqk`, param)
    .then((r) => r?.[0]?.data)
    .then((t) => t.records?.[0]);
}
/**
 * 项目看板_招标阶段情况
 * @param {*} param 
 * @returns
 */
export function zbjdqk(param) {
  return httpPost(`${apiUrl}/zbjdqk`, param)
    .then((r) => r?.[0]?.data)
    .then((t) => t.records?.[0]);
}